﻿using MyNet.CMS.Domain;
using MyNet.Library.Mvc;
using System;
using System.Web.Mvc;
using MyNet.Library.Core;
namespace Coffee.Web
{
    public class PagesController : Controller
    {
        private readonly IArticleAppService _articleAppService = IoCHeler.Resolve<IArticleAppService>();

        public ActionResult Index()
        {
            return base.View();
        }
        public ActionResult Page(string vPage)
        {
            return base.View(vPage);
        }
        public ActionResult Search()
        {
            return base.View();
        }

        public ActionResult About(ActionOptions actionOptions)
        {
            var model = new Article();

            model = _articleAppService.GetArticle("lxwm");

            return base.View(model);
        }
    }
}
